package com.yiyi.system.service.impl;

import com.yiyi.common.utils.DateUtils;
import com.yiyi.system.domain.MarketingBaidu;
import com.yiyi.system.mapper.MarketingBaiduMapper;
import com.yiyi.system.service.IMarketingBaiduService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author yiyi
 * @date 2025-01-20
 */
@Service
public class MarketingBaiduServiceImpl implements IMarketingBaiduService
{
    @Autowired
    private MarketingBaiduMapper marketingBaiduMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param  id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public MarketingBaidu selectMarketingBaiduById(Long  id)
    {
        return marketingBaiduMapper.selectMarketingBaiduById( id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param marketingBaidu 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<MarketingBaidu> selectMarketingBaiduList(MarketingBaidu marketingBaidu)
    {
        return marketingBaiduMapper.selectMarketingBaiduList(marketingBaidu);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param marketingBaidu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertMarketingBaidu(MarketingBaidu marketingBaidu)
    {
        marketingBaidu.setCreateTime(DateUtils.getNowDate());
        return marketingBaiduMapper.insertMarketingBaidu(marketingBaidu);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param marketingBaidu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateMarketingBaidu(MarketingBaidu marketingBaidu)
    {
        marketingBaidu.setUpdateTime(DateUtils.getNowDate());
        return marketingBaiduMapper.updateMarketingBaidu(marketingBaidu);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param  ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMarketingBaiduByIds(Long[]  ids)
    {
        return marketingBaiduMapper.deleteMarketingBaiduByIds( ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param  id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMarketingBaiduById(Long  id)
    {
        return marketingBaiduMapper.deleteMarketingBaiduById( id);
    }
}
